Manual sorting

You can sort notes by right-clicking the parent note in the Note Tree and selecting Advanced -> Sort notes by ... This will sort existing notes, but will not automatically sort future notes added to this parent note.

The sorting dialog allows:

Automatic/Permanent Sorting

Child notes can be automatically sorted by attaching specific labels to the parent note:

Sorting is done by comparing note properties or specific labels on child notes. There are four sorting levels, with the first having the highest priority. Lower priority levels are applied only if higher priority comparisons result in equality.

  1. Top Label Sorting: Child notes with the #top label will appear at the top of the folder.
  2. Bottom Label Sorting: (Introduced in Trilium 0.62) Child notes with the #bottom label will appear at the bottom of the folder.
  3. Property/Label-Based Sorting: Sorting is based on the parent note's #sorted label:
  4. Alphabetical Sorting: Used as a last resort when other criteria result in equality.

All comparisons are made string-wise (e.g., "1" < "2" or "2020-10-10" < "2021-01-15", but also "2" > "10").